global tableau, equal, currentsel, getlist, godlist, basecard
on beginSprite me
row = determinerow()
can = [#one: 40, #two: 54, #three: 68, #four: 82]
fp = can[row]
end
on determinerow me
if spriteNum = 96 then
return #one
else
if spriteNum = 97 then
return #two
else
if spriteNum = 98 then
return #three
else
if spriteNum = 99 then
return #four
end if
end if
end if
end if
end
on mouseEnter me
if getlist <> VOID then
if not findfound(the clickOn) then
if (tableau[row].getcardcount() > 0) and (tableau[row].getcardcount() < 14) then
if ((getlist.getlastcard().rankvalue = (tableau[row].getlastcard().rankvalue + 1)) or (getlist.getlastcard().rankvalue = (tableau[row].getlastcard().rankvalue - 1))) and (getlist.getlastcard().suit = tableau[row].getlastcard().suit) then
equal = 1
godlist = tableau[row]
currentsel = tableau[row].getlastcard().spnum + 1
else
if (((getlist.getlastcard().rank = "ace") and (tableau[row].getlastcard().rank = "king")) or ((getlist.getlastcard().rank = "king") and (tableau[row].getlastcard().rank = "ace"))) and (getlist.getlastcard().suit = tableau[row].getlastcard().suit) then